# -*-coding:utf-8-*-
def get_xy_uav(time):
    arr = [[31.93907748, 118.7901139], [31.93907539, 118.7901146],
           [31.93910773, 118.7901125], [31.93910739, 118.7901099], [31.93908746, 118.7901156],
           [31.93909198, 118.7901156]]
    return arr[time]


def get_altitude(time):
    arr = [93.8, 94.2, 96.5, 96.5, 96.1, 95.8]  # 1ft(英尺) = 0.3048米
    return arr[time] * 0.3048


def get_attitude(time):
    # pitch roll yaw
    arr = [[3.6, 0.7, -87.6], [1.2, 1.9, -87.5], [3.1, -1, -128.4], [2.7, -3.9, -162.9], [-3.7, -2.7, 166.9],
           [-4.3, 2.5, 107.8]]
    # arr = [[0, 0.7, 0], [0, 1.9, 0], [0, -1, 0], [0, -3.9, 0], [0, -2.7, 0],
    #        [0, 2.5, 0]]
    return arr[time]


def get_PTZ_attitude(time):
    arr = [[-88.2, -82.2], [-88.2, -82.2],
           [-88.2, -123.3], [-88.2, -157.7], [-88.2, 172.1], [-88.2, 113.1]]
    # arr = [[-88.2, 5.4], [-88.2, 5.3],
    #        [-88.2, 5.1], [-88.2, 5.2], [-88.2, 5.2], [-88.2, 5.3], [-88.2, 5.3]]
    return arr[time]


def get_label_dir(time):
    s1 = 'exp' + str(19 + time)
    s2 = 'DJI_00' + str(60 + time * 2) + '.txt'
    target_path = 'flightData/images/10.20/' + s1 + '/labels/' + s2
    return target_path
